package kr.pe.smallhope.mobismap;

import kr.pe.smallhope.mobismap.views.GoogleAddressCoordinateView;
import kr.pe.smallhope.mobismap.views.GoogleDistanceTimeView;
import kr.pe.smallhope.mobismap.views.GoogleMapView;
import kr.pe.smallhope.mobismap.views.GooglePostcodeView;
import kr.pe.smallhope.mobismap.views.NaverAddressCoordinateView;
import kr.pe.smallhope.mobismap.views.NaverDistanceTimeView;
import kr.pe.smallhope.mobismap.views.NaverMapView;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class Perspective implements IPerspectiveFactory {
    
    public void createInitialLayout(IPageLayout layout) {
        String editorArea = layout.getEditorArea();
        layout.setEditorAreaVisible(false);
        layout.setFixed(true);
        
//        IFolderLayout topFolder = layout.createFolder("top", IPageLayout.TOP, 0.05f, editorArea);
        IFolderLayout bottomFolder = layout.createFolder("bottom", IPageLayout.BOTTOM, 1.0f, editorArea);
        
//        topFolder.addView(MenuView.ID);

        bottomFolder.addView(NaverAddressCoordinateView.ID);
        bottomFolder.addView(NaverDistanceTimeView.ID);
        bottomFolder.addView(NaverMapView.ID);
        bottomFolder.addView(GoogleAddressCoordinateView.ID);
        bottomFolder.addView(GooglePostcodeView.ID);
        bottomFolder.addView(GoogleDistanceTimeView.ID);
        bottomFolder.addView(GoogleMapView.ID);
        
    }
    
}
